/**
 * Created by jean.h.ma on 11/04/2018.
 */

import React from 'react'
import Base from '@codefree/badger/app/components/Base'
import Master from '../../components/Master'
import http from '../../config/http'

export default class Http extends Base {

	render() {
		return (
			<Master>
				<h6>Example Http</h6>
				<div>
					<button type="button" onClick={async () => {
						const {data} = await http.post('/login', {
							username: "abc",
							password: "abc"
						});
						console.log(data);
					}}>login
					</button>
				</div>
			</Master>
		);
	}
}